package en.edu.zucc.pb.loginapplication.fragment;

import androidx.fragment.app.Fragment;
//
//public class FragmentPay extends Fragment {
//}


//package com.example.myapplication;

import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import en.edu.zucc.pb.loginapplication.R;
//import androidx.navigation.fragment.NavHostFragment;
//
//import com.example.myapplication.databinding.FragmentFirstBinding;

public class FragmentPay extends Fragment {

//    private PayFragm binding;

    @Override
    public View onCreateView(
            LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState
    ) {

//        View view = inflater.inflate(R.layout.fragment_tab, container, false);
//        binding = FragmentFirstBinding.inflate(inflater, container, false);
//        return binding.getRoot();
//        一群 图片 怎么搞 ，recyview 吗/
        View view = inflater.inflate(R.layout.fragment_pay, container, false);
//        TextView textView = view.findViewById(R.id.text);
//        textView.setText(getArguments().getString("key"));
//        textView.setBackgroundColor(Color.rgb((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random() * 255)));
        return view;

    }

    public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

//        binding.buttonFirst.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                NavHostFragment.findNavController(FirstFragment.this)
//                        .navigate(R.id.action_FirstFragment_to_SecondFragment);
//            }
//        });
    }

//    @Override
//    public void onDestroyView() {
//        super.onDestroyView();
////        binding = null;
//    }

}